#////////////////////////////////////////////////////////////////////////////
#//
#// Author      : Luis M. de la Cruz Salas
#// Date        : Fri Jun  5 12:44:43 CDT 2009
#//
#////////////////////////////////////////////////////////////////////////////

include	../tuna-cfd-rules.in

all :	singlePhase1D \
	singlePhase2D \
	singlePhase3D \
	BuckleyLeverett1D \
	BuckleyLeverett2D \
	BuckleyLeverett3D \
	WaterFlooding1D \
	FiveSpot2D \
	FiveSpot3D

singlePhase1D: singlePhase1D.o 
	$(CXX) $< -o $@ $(LIBS)

singlePhase1D.o: singlePhase1D.cpp
	$(CXX) $(CXXFLAGS) -DWITH_GNUPLOT $(INCLUDES) -c $<

singlePhase2D: singlePhase2D.o 
	$(CXX) $< -o $@ $(LIBS)

singlePhase2D.o: singlePhase2D.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

singlePhase3D: singlePhase3D.o 
	$(CXX) $< -o $@ $(LIBS)

singlePhase3D.o: singlePhase3D.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

BuckleyLeverett1D: BuckleyLeverett1D.o 
	$(CXX) $< -o $@ $(LIBS)

BuckleyLeverett1D.o: BuckleyLeverett1D.cpp
	$(CXX) $(CXXFLAGS) -DWITH_GNUPLOT $(INCLUDES) -c $<

WaterFlooding1D: WaterFlooding1D.o 
	$(CXX) $< -o $@ $(LIBS)

WaterFlooding1D.o: WaterFlooding1D.cpp
	$(CXX) $(CXXFLAGS) -DWITH_GNUPLOT $(INCLUDES) -c $<

BuckleyLeverett2D: BuckleyLeverett2D.o 
	$(CXX) $< -o $@ $(LIBS)

BuckleyLeverett2D.o: BuckleyLeverett2D.cpp
	$(CXX) $(CXXFLAGS)  $(INCLUDES) -c $<

BuckleyLeverett3D: BuckleyLeverett3D.o 
	$(CXX) $< -o $@ $(LIBS)

BuckleyLeverett3D.o: BuckleyLeverett3D.cpp
	$(CXX) $(CXXFLAGS)  $(INCLUDES) -c $<

FiveSpot2D: FiveSpot2D.o 
	$(CXX) $< -o $@ $(LIBS)

FiveSpot2D.o: FiveSpot2D.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

FiveSpot3D: FiveSpot3D.o 
	$(CXX) $< -o $@ $(LIBS)

FiveSpot3D.o: FiveSpot3D.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

clean:
	/bin/rm -f *.o *.ii *~ singlePhase1D singlePhase1D.o \
	singlePhase2D singlePhase2D.o \
	singlePhase3D singlePhase3D.o \
	BuckleyLeverett1D BuckleyLeverett1D.o \
	BuckleyLeverett2D BuckleyLeverett2D.o \
	BuckleyLeverett3D BuckleyLeverett3D.o \
	WaterFlooding1D WaterFlooding1D.o \
	FiveSpot2D FiveSpot2D.o \
	FiveSpot3D FiveSpot3D.o
